// 基础实体
abstract class BaseModel {
  BaseModel();

  // Map转实体
  BaseModel.fromJson(Map<String, dynamic> json);

  // 实体转Map
  Map<String, dynamic> toJson();
}

class PagerModel {
  int page = 0;
  int total = 0;
  int pageSize = 15;
  PagerModel.fromJson(Map<String, dynamic> data) {
    page = data["page"] ?? 0;
    total = data["total"] ?? 0;
    pageSize = data["size"] ?? 15;
  }
}
